package com.service.impl;
//商品分类接口实现类
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.CourseCategoryDao;
import com.entity.CourseCategory;
 
import com.service.CourseCategoryService;

@Service
public class CourseServiceImp implements CourseCategoryService {

	@Autowired
	private CourseCategoryDao courseCategoryDao;
	public int add(CourseCategory courseCategory) {
		// TODO Auto-generated method stub
		return courseCategoryDao.add(courseCategory);
	}

	public int edit(CourseCategory courseCategory) {
		// TODO Auto-generated method stub
		return courseCategoryDao.edit(courseCategory);
	}

	public int delete(Long id) {
		// TODO Auto-generated method stub
		return courseCategoryDao.delete(id);
	}

	public List<CourseCategory> findList(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return courseCategoryDao.findList(queryMap);
	}

	public Integer getTotal(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return courseCategoryDao.getTotal(queryMap);
	}

	public CourseCategory findById(Long id) {
		// TODO Auto-generated method stub
		return courseCategoryDao.findById(id);
	}

}
